<?php defined('SYS_PATH') OR exit('No direct script access allowed');?>

<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">

<h4>A PHP Error was encountered</h4>

<p>Severity: <?php echo $severity; ?></p>
<p>Message:  <?php echo $message; ?></p>
<p>Filename: <?php echo $file; ?></p>
<p>Line Number: <?php echo $line; ?></p>


<p>Backtrace:</p>
<?php foreach (debug_backtrace() as $error): ?>

	<?php if (isset($error['file']) && strpos($error['file'], realpath(ROOT_PATH)) !== 0): ?>

		<p style="margin-left:10px">
		File: <?php echo $error['file'] ?><br />
		Line: <?php echo $error['line'] ?><br />
		Function: <?php echo $error['function'] ?>
		</p>

	<?php endif ?>

<?php endforeach ?>


</div>